package org.zachary.agent.domain.aggregate_model.token;

import jakarta.persistence.Embeddable;
import lombok.Getter;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Embeddable
public class RefreshToken implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    private String refreshToken;
    private long refreshExpires;
    public RefreshToken(String refreshToken, long refreshExpires) {
        this.refreshToken = refreshToken;
        this.refreshExpires = refreshExpires;
    }
    protected RefreshToken() {}
}
